package com.gxa.jjty.cjr.service.impl;

import com.gxa.jjty.cjr.mapper.OrderoRecordMapper;
import com.gxa.jjty.cjr.service.OrderoRecordService;
import com.gxa.jjty.core.pojo.OrderoRecord;
import com.gxa.jjty.core.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author NITRO
 */
@Service("orderoRecordService")
public class OrderoRecordServiceImpl extends BaseServiceImpl<OrderoRecord>  implements OrderoRecordService {

    @Autowired
    OrderoRecordMapper orderoRecordMapper;
    @Override
    public void addRecord(OrderoRecord record) {
        //设置操作时间为当前系统时间
        record.setOperateTime(new Date());
        orderoRecordMapper.insert(record);

    }
}
